<template>
	<img :src="base64Img" @click="getKaptchaImg" ></img>
</template>
<script>
	export default{
		data(){
			return{
				base64Img:null,
				uuid:null
			}
		},
		methods:{
			async getKaptchaImg(){
				let result=await this.$axios("/kaptcha");
				this.base64Img=result.data.data.kaptchaImg;
				this.uuid=result.data.data.uuid;
			}
		},
		created() { this.getKaptchaImg() }
	}
</script>

<style>
</style>